<div class="menu-main ui-tabs ui-widget ui-widget-content ui-corner-all">
  <?php foreach ($menuLevels as $levelKey => $level): ?>
    <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header<?php if($levelKey == 0): ?> ui-corner-top<?php elseif($levelKey == count($menuLevels)-1): ?> ui-corner-bottom<?php endif; ?>">
      <?php foreach ($level as $menuItemKey => $menuItem): ?>
        <li class="ui-state-default ui-corner-all <?php if($menuItem['marked'] == 1): ?> ui-tabs-selected ui-state-active<?php endif; ?>">
          <?php echo link_to( $menuItem['Translation'][sfContext::getInstance()->getRequest()->getParameter('sf_culture')]['name'] , array('table'=>$menuItem['module'], 'action'=>'index')); ?>
        </li>          
      <?php endforeach; ?>
    </ul>
  <?php endforeach; ?>
</div>